﻿<% @ Page Language="C#" MasterPageFile="~/MasterPage.master" CodeFile="QQOnline.aspx.cs" Inherits="QQOnline" Title="监听好友QQ上线下线" %>
<% @ MasterType VirtualPath="~/MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Content1" Runat="Server">
                
                <div style="margin-top : 30px; width : 100%">
                <div style="z-index: 107; margin-left : 0; float : left; width : auto">
                    <asp:Image ID="Image2" ImageUrl="./Pics/qq.jpg" runat="server" />
                </div>
                <div style="z-index: 107; margin-left : 0; float : left; width : auto">
                    <h3>上线下线侦听</h3>
                </div>
                </div>

                <div style="margin-top : 30px; float : left; width : 100%">
                    <div style="margin-top : 10px auto; width : 100%">
                    我们会在目标由下线状态变为上线状态或者相反时，给您发短信(每个QQ每月消耗积分：<b>2</b>)（<a href="./HowToSet139.aspx" >帮助？</a>）：
                    </div>
                    <div style="z-index: 107; margin-left : 0; float : left; width : auto">QQ：</div>
                    <div style="z-index: 107; margin : 0 auto; float : left; width : 27%">
                        <asp:TextBox ID="TextBox2" runat="server" Style="z-index: 100;
                        margin: 0 auto; float : left; width: 100%;"></asp:TextBox>
                    </div>

                    <div style="z-index: 107; margin-left : 20px; float : left; width : auto">备忘昵称：</div>
                    <div style="z-index: 107; float : left; width : 27%">
                        <asp:TextBox ID="TextBox3" runat="server" Style="z-index: 100;
                        margin: 0 auto; float : left; width: 100%;"></asp:TextBox>
                    </div>

                    <asp:Button ID="Button3" runat="server" Text="侦听" class="btn-submit2 enabled2"
                        Font-Bold="True" Font-Size="Medium" OnClick="Button3_Click"  />
                
                </div>

                
                <div style="float : left; margin-top : 30px; width : 100%">
                <div style="margin-top : 10px auto; width : 100%">
                您已经关注的QQ，您可以修改他们：
                </div>
                <asp:ListView ID="QQListView" 
                    DataSourceID="objQQService"
                    onitemupdating="qqListView1_ItemUpdating"
                    OnItemDeleting="qqListView1_ItemDeleting"
                    OnItemCommand = "qqListView1_ItemCommand"
                    runat="server">
                    <LayoutTemplate>
                      <table cellpadding="2" class="datasheet datatable excel2007" width="640px" border="1" runat="server" id="tblProducts">
                        <tr id="Tr1" class="first" runat="server">
                          <th id="Th3" runat="server">#</th>
                          <th id="Th1" runat="server">QQ号码</th>
                          <th id="Th2" runat="server">备忘昵称</th>
                          <th id="th" runat="server">当前状态</th>
                        </tr>
                        <tr runat="server" id="itemPlaceholder" />
                      </table>
                      <asp:DataPager runat="server" ID="ContactsDataPager" PageSize="12">
                        <Fields>
                          <asp:NextPreviousPagerField ShowFirstPageButton="true" ShowLastPageButton="true"
                            FirstPageText="|&lt;&lt; " LastPageText=" &gt;&gt;|"
                            NextPageText=" &gt; " PreviousPageText=" &lt; " />
                        </Fields>
                      </asp:DataPager>
                    </LayoutTemplate>
                    <ItemTemplate>
                      <tr id="Tr2" runat="server">
                        <th class="first" style="white-space:nowrap">
                          <asp:LinkButton ID="DeleteButton" runat="Server" Text="取消对这个QQ的侦听" CommandName="Delete" />
                        </th>
                        <td>
                          <asp:TextBox ID="NumberTextBox" runat="Server" AutoPostBack="true" Text='<%#Bind("Number") %>' />
                        </td>
                        <td valign="top">
                          <asp:TextBox ID="NickNameTextBox" runat="Server" AutoPostBack="true" Text='<%#Bind("NickName") %>' />
                        </td>
                        <td>
                          <asp:Image ID="Image1" ImageUrl='<%#Bind("ImageUrl") %>' runat="server" />
                        </td>
                      </tr>
                    </ItemTemplate>
            </asp:ListView>
            <asp:ObjectDataSource ID="objQQService" runat="server" TypeName="QQService"
                SelectMethod="Select" UpdateMethod="Update" DeleteMethod="Delete" 
                onobjectcreating="objQQService_ObjectCreating">      
            </asp:ObjectDataSource>
            <p>
                <asp:Label ID="Label2" runat="server" Text=""></asp:Label>
            </p>

            <asp:Button ID="Button4" runat="server" Text="保存我的改动" class="btn-submit enabled" OnClick="Button4_Click"  />
            </div>


            <div style="z-index: 107; margin-top : 60px; float : left; width : 100%">
      <table style="margin-left : 0; float : left; width : 100%">
        <tr>
          <td>
           其他服务：
          </td>
          <td id="Th3" runat="server">
             <a href="./Stock.aspx" title= "股票信息侦听服务"><asp:Image ID="Image1" ImageUrl="./Pics/stock.jpg" runat="server" />
             </a>
           </td>
           <td id="Th1" runat="server">
             <a href="./AppleStore.aspx" title= "苹果商店监测"><asp:Image ID="Image3" ImageUrl="./Pics/apple.jpg" runat="server" />
             </a>
           </td>
           <td id="Th2" runat="server">
             <a href="./weather.aspx" title= "天气预报"><asp:Image ID="Image4" ImageUrl="./Pics/weather.gif" runat="server" />
             </a>
           </td>
        </tr>
        <tr>
          <td></td>
          <td id="Td1" runat="server">
             <a href="./Stock.aspx" title= "股票信息侦听服务">股票信息侦听
             </a>
           </td>
           <td id="Td2" runat="server">
             <a href="./AppleStore.aspx" title= "苹果商店监测">苹果商店监测
             </a>
           </td>
           <td id="Td3" runat="server">
             <a href="./weather.aspx" title= "天气预报">天气预报
             </a>
           </td>
        </tr>
       </table>
      <div style="z-index: 107; margin-left : 0; float : left; width : 50%">
        
      </div>
            <div style="z-index: 107; margin-top : 30px; float : left; width : 100%">
                 分享到：
                <div id="jiathis_style_32x32">
	                <a class="jiathis_button_tsina"></a>
	                <a class="jiathis_button_tqq"></a>
                    <a class="jiathis_button_qzone"></a>
	                <a class="jiathis_button_renren"></a>
	                <a class="jiathis_button_kaixin001"></a>
                    <a class="jiathis_button_douban"></a>
                    <a class="jiathis_button_tieba"></a>
                    <a class="jiathis_button_thexun"></a>
                    <a class="jiathis_button_51"></a>
                    <a class="jiathis_button_t163"></a>
                    <a class="jiathis_button_tsohu"></a>
                    <a class="jiathis_button_mop"></a>
                    <a class="jiathis_button_tianya"></a>
                    <a class="jiathis_button_fb"></a>
                    <a class="jiathis_button_msn"></a>
                    <a class="jiathis_button_twitter"></a>
                    <a class="jiathis_button_hi"></a>
                    <a class="jiathis_button_zhuaxia"></a>
	                <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
	                <a class="jiathis_counter_style"></a>
                </div>
                <script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8">
                </script>
                <script type="text/javascript">
                    var jiathis_config = {
                        url: "http://www.shuyixia.com/QQOnline.aspx",
                        title: "这个网站很不错哦，可以在我关心的QQ好友上线的时候给我发送一条短信。"
                    }
                </script>
      </div>
</div>
</asp:Content>



